package com.agent.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("activities")
public class Activities {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long userId;
    
    // 事项信息简述
    private String activity;
    // 地址
    private String address;
    
    // 时间信息
    private LocalTime startTime;
    private LocalTime endTime;
    private Integer allDay;
    private Integer week; // 星期几(1-7)
    private LocalDate date;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}
